﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace spotnumbers.Model
{
    public class Game
    {
        public List<String> Names { get; set; }
        public List<Number> Numbers {get; set;}
        public int CurrentNumberIndex { get; set;  }

        public Game()
        {
            CurrentNumberIndex = -1;
        }


        /// <returns>False if game was finished </returns>
        internal bool NextNumber()
        {
            if (Numbers == null)
            {
                CurrentNumberIndex = -1;
                return true;
            }
            CurrentNumberIndex += 1;
            if (CurrentNumberIndex >= Numbers.Count)
                return false;
            return true;
        }
    }
}
